<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Hope2</title>
    <link rel="stylesheet" href="https://lib.baomitu.com/bulma/0.9.1/css/bulma.css">
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.datatables.net/rss.xml">
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css">
    <script type="text/javascript" language="javascript"
            src="https://lib.baomitu.com/jquery/3.5.1/jquery.min.js"></script>
    <script type="text/javascript" language="javascript"
            src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var link = "/fund/profiles";
            $.getJSON(link, function (data) {
                $('#stockTable').DataTable({
                    data: data,
                    order: [[5, "desc"]],
                    columns: [
                        {data: 'code'},
                        {data: 'name'},
                        {data: 'type'},
                        {data: 'scale'},
                        {data: 'grl1Week'},
                        {data: 'grl1Month'},
                        {data: 'grl3Month'},
                        {data: 'grl6Month'},
                        {data: 'grl1Year'},
                        {
                            data: 'code',
                            render: function (data, type, row, meta) {
                                var code = row.code;
                                return `<a href="/demark-fund-flag.html?code=${code}" target="_blank">图形版</a>`;
                            }
                        }
                    ]
                });
            });
        });
    </script>
</head>
<body class="layout-default">
<nav id="navbar" class="bd-navbar navbar has-shadow is-spaced">
    <div class="container">
        <div class="navbar-brand">
            <a class="navbar-item" href="https://qianyitian.com/">
                <img style="height:36px;width:36px;" src="https://img.qianyitian.com/icon/logo.png">  <h4
                    class="title is-3">Hope2</h4>
            </a>
        </div>
    </div>
</nav>

<section class="hero is-light is-info">
    <div class="hero-body">
        <div class="container">
            <h1 class="title">
                基金总览
            </h1>
            <h2 class="subtitle" id="description">

            </h2>

            </p>
        </div>
    </div>
</section>


<section class="section">
    <div class="container">
        <table id="stockTable" class="display compact" style="width:100%">
            <thead>
            <tr>
                <th>代码</th>
                <th>名称</th>
                <th>类型</th>
                <th>市值</th>
                <th>最近1星期</th>
                <th>最近1月</th>
                <th>最近3月</th>
                <th>最近6月</th>
                <th>最近1年</th>
                <th>DeMark回溯</th>
            </tr>
            </thead>
        </table>
    </div>
</section>
<hr>
</body>
</html>